package com.cqc.other.ifelse;

import org.junit.Test;

public class FunctionTest {

    @Test
    public void test1() {
        VUtil.isTrue(false).throwMessage("我要抛出异常了");
    }

    @Test
    public void test2() {
        VUtil.isTrueOrFalse(false).trueOrFalseHandle(() -> {
            System.out.println("true");
        }, () -> {
            System.out.println("false");
        });
        VUtil.isTrueOrFalse(false).trueOrFalseHandle(() -> {
            System.out.println("true");
        }, () -> {
            System.out.println("false");
        });
    }

    @Test
    public void test3() {
        VUtil.isTrueOrFalse(false).trueOrFalseHandle(new Runnable() {
            @Override
            public void run() {

            }
        }, new Runnable() {
            @Override
            public void run() {

            }
        });
    }


}
